import request from '@/utils/request'


//获取用户列表
export function systemUserList(params) {
	return request({
		url: '/system/user/list',
		method: 'get',
		data: params
	})
}

//新增用户
export function systemUserNew(params) {
	return request({
		url: '/system/user',
		method: 'post',
		data: params
	})
}

//修改用户
export function systemUserPut(params) {
	return request({
		url: '/system/user',
		method: 'put',
		data: params
	})
}

//根据用户编号获取详细信息
export function systemUserGet(params) {
	return request({
		url: `/system/user/${params}`,
		method: 'get'
		// data: params
	})
}

//删除用户
export function systemUserDelete(params) {
	return request({
		url: `/system/user/${params}`,
		method: 'DELETE'
		// data: params
	})
}

//获取角色选择框列表
export function systemRoleOptionselect(params) {
	return request({
		url: '/system/role/optionselect',
		method: 'get',
		data: params
	})
}